
// 滚动加载
export default  {
    inserted(el, binding) {
        // 获取element-ui定义好的scroll盒子
        const SELECTDOWN_DOM = el.querySelector('.el-select-dropdown .el-select-dropdown__wrap')
        SELECTDOWN_DOM.addEventListener('scroll', function() {
            const CONDITION = (this.scrollHeight - this.scrollTop)-1 <= this.clientHeight
            if (CONDITION) {
                binding.value()
            }
        })
    }
}